Gets a temporary signed URL to upload a file (Service does not upload the file by itself, User needs to use this URL to upload the file). The generated URL is time bound and by default expires by 7 days maximum.
User will receive a FileSource in the response.This is the relative path where the uploaded file will persist. Once the file is uploaded, FileSource can then be used to post metadata of the file.
Required roles: 'service.file.editors'. Users added to groups 'users.datalake.editors', 'users.datalake.admins', 'users.datalake.ops' would be added to group 'service.file.editors' by default.
Security
bearer
- SLB Saas OSDU (SGP)https://as5.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB SaaS OSDU (BRS)https://br5.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB Saas OSDU (WEU)https://eu5.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB SaaS OSDU (EUT)https://eu6.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB Saas OSDU (MDE)https://eu7.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB Saas OSDU (PSC)https://us5.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB Saas OSDU (USC)https://us7.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB Saas OSDU (WUS)https://us8.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB Saas OSDU (SAS)https://as6.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB Saas OSDU (SWC)https://eu8.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB Saas OSDU (MYW)https://as7.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- SLB Saas OSDU (ZAN)https://za1.api.enterprisedata.slb.com/api/file/v2/files/uploadURL
- Mock serverhttps://developer.slb.com/_mock/solutions/core-service/apis/osdu-file-service/v2/files/uploadURL
curl -i -X GET \
https://as5.api.enterprisedata.slb.com/api/file/v2/files/uploadURL \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'data-partition-id: string'Created location
Unique Identifier for the file
Response
{ "FileID": "string", "Location": { "SignedURL": "GCS signed URL", "FileSource": "AXB564XVCY\\SHVCU7632" } }